/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const statisticsRouter = {
  path: '/statistics',
  component: Layout,
  redirect: 'noRedirect',
  hidden:false,
  alwaysShow: true, // will always show the root menu
  name: '数据',
  meta: {
    title: '数据',
    icon: 'component',
    roles: ['knowledge']
  },
  children: [
    {
      path:"macroscopic",
      component: () => import('@/views/statistics/interest/interest'),
      name: '宏观',
      meta: {
        title: '宏观'
      },
      children:[
        {
          path: 'interest',
          component: () => import('@/views/statistics/interest/interest'),
          name: '利率',
          meta: {
            title: '利率'
          }
        },
        {
          path: 'cpi',
          component: () => import('@/views/statistics/interest/interest'),
          name: '居民消费价格指数',
          meta: {
            title: '居民消费价格指数'
          }
        },
        {
          path: 'ppi',
          component: () => import('@/views/statistics/interest/interest'),
          name: '工业品出厂价格指数(PPI)',
          meta: {
            title: '工业品出厂价格指数(PPI)'
          }
        },
        {
          path: 'gdp',
          component: () => import('@/views/statistics/interest/interest'),
          name: '国内生产总值',
          meta: {
            title: '国内生产总值'
          }
        },
        {
          path: 'pmi',
          component: () => import('@/views/statistics/interest/interest'),
          name: '采购经理人指数',
          meta: {
            title: '采购经理人指数'
          }
        },
        {
          path: 'gdzctz',
          component: () => import('@/views/statistics/interest/interest'),
          name: '城镇固定资产投资',
          meta: {
            title: '城镇固定资产投资'
          }
        }

      ]
    },
  ]
}

export default statisticsRouter
